package com.zone.demo.controller;

import com.zone.demo.service.minIntTestService;
import com.zone.demo.util.JsonResult;
import com.zone.demo.util.ResultCode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
/**
* Description 前端控制器
* @author le
* @date 2021/7/11 13:51
* @return
*/
@RestController
@RequestMapping("/test/myTest")
public class minIntTest {
    @Autowired
    private minIntTestService minIntTestService;

    /**
    * Description
    * @author le
    * @date 2021/7/11 13:43
    * @return com.zone.demo.util.JsonResult
    */

    @GetMapping("/minInt")
    public JsonResult minInt(@RequestParam(value = "args",required=false)List<Integer> args){
        int result = this.minIntTestService.minInt(args);
        return new JsonResult(ResultCode.SUCCESS,result);
    }
}
